Class SVNJNAUtil
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil
-
public class SVNJNAUtil extends java.lang.Object
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Constructor Description SVNJNAUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
addPasswordToGnomeKeyring(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider)
static boolean
addPasswordToMacOsKeychain(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive)
static boolean
createSymlink(java.io.File file, java.lang.String linkName)
static char[]
decrypt(char[] encryptedData)
static char[]
encrypt(char[] rawData)
static java.lang.String
getApplicationDataPath(boolean common)
static SVNFileType
getFileType(java.io.File file)
static java.lang.String
getLinkTarget(java.io.File file)
static char[]
getPasswordFromGnomeKeyring(java.lang.String realm, java.lang.String userName, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider)
static char[]
getPasswordFromMacOsKeychain(java.lang.String realm, java.lang.String userName, boolean nonInteractive)
static java.lang.Long
getSymlinkLastModified(java.io.File file)
static java.lang.Boolean
isExecutable(java.io.File file)
static boolean
isGnomeKeyringEnabled()
static boolean
isJNAPresent()
static boolean
isMacOsKeychainEnabled()
static boolean
isWinCryptEnabled()
static boolean
moveFile(java.io.File src, java.io.File dst)
static boolean
setExecutable(java.io.File file, boolean set)
static boolean
setHidden(java.io.File file)
static void
setJNAEnabled(boolean enabled)
static boolean
setSGID(java.io.File file)
static boolean
setWritable(java.io.File file)
-
-
-
Method Detail
-
setJNAEnabled
public static void setJNAEnabled(boolean enabled)
-
isJNAPresent
public static boolean isJNAPresent()
-
getFileType
public static SVNFileType getFileType(java.io.File file)
-
isExecutable
public static java.lang.Boolean isExecutable(java.io.File file)
-
getLinkTarget
public static java.lang.String getLinkTarget(java.io.File file)
-
setExecutable
public static boolean setExecutable(java.io.File file, boolean set)
-
setSGID
public static boolean setSGID(java.io.File file)
-
createSymlink
public static boolean createSymlink(java.io.File file, java.lang.String linkName)
-
getSymlinkLastModified
public static java.lang.Long getSymlinkLastModified(java.io.File file)
-
setWritable
public static boolean setWritable(java.io.File file)
-
setHidden
public static boolean setHidden(java.io.File file)
-
moveFile
public static boolean moveFile(java.io.File src, java.io.File dst)
-
decrypt
public static char[] decrypt(char[] encryptedData)
-
encrypt
public static char[] encrypt(char[] rawData)
-
addPasswordToMacOsKeychain
public static boolean addPasswordToMacOsKeychain(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive) throws SVNException
- Throws:
SVNException
-
getPasswordFromMacOsKeychain
public static char[] getPasswordFromMacOsKeychain(java.lang.String realm, java.lang.String userName, boolean nonInteractive) throws SVNException
- Throws:
SVNException
-
addPasswordToGnomeKeyring
public static boolean addPasswordToGnomeKeyring(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider) throws SVNException
- Throws:
SVNException
-
getPasswordFromGnomeKeyring
public static char[] getPasswordFromGnomeKeyring(java.lang.String realm, java.lang.String userName, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider) throws SVNException
- Throws:
SVNException
-
isWinCryptEnabled
public static boolean isWinCryptEnabled()
-
isMacOsKeychainEnabled
public static boolean isMacOsKeychainEnabled()
-
isGnomeKeyringEnabled
public static boolean isGnomeKeyringEnabled()
-
getApplicationDataPath
public static java.lang.String getApplicationDataPath(boolean common)
-
-