Class SVNJNAUtil
java.lang.Object
org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static boolean
private static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addPasswordToGnomeKeyring
(String realm, String userName, char[] password, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider) static boolean
addPasswordToMacOsKeychain
(String realm, String userName, char[] password, boolean nonInteractive) static boolean
createSymlink
(File file, String linkName) static char[]
decrypt
(char[] encryptedData) static char[]
encrypt
(char[] rawData) static String
getApplicationDataPath
(boolean common) static SVNFileType
getFileType
(File file) static String
getLinkTarget
(File file) static char[]
getPasswordFromGnomeKeyring
(String realm, String userName, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider) static char[]
getPasswordFromMacOsKeychain
(String realm, String userName, boolean nonInteractive) static Long
getSymlinkLastModified
(File file) static Boolean
isExecutable
(File file) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
setExecutable
(File file, boolean set) static boolean
static void
setJNAEnabled
(boolean enabled) static boolean
static boolean
setWritable
(File file)
-
Field Details
-
ourIsJNAEnabled
private static boolean ourIsJNAEnabled -
ourIsJNAPresent
private static boolean ourIsJNAPresent -
JNA_CLASS_NAME
- See Also:
-
-
Constructor Details
-
SVNJNAUtil
public SVNJNAUtil()
-
-
Method Details
-
setJNAEnabled
public static void setJNAEnabled(boolean enabled) -
isJNAPresent
public static boolean isJNAPresent() -
getFileType
-
isExecutable
-
getLinkTarget
-
setExecutable
-
setSGID
-
createSymlink
-
getSymlinkLastModified
-
setWritable
-
setHidden
-
moveFile
-
decrypt
public static char[] decrypt(char[] encryptedData) -
encrypt
public static char[] encrypt(char[] rawData) -
addPasswordToMacOsKeychain
public static boolean addPasswordToMacOsKeychain(String realm, String userName, char[] password, boolean nonInteractive) throws SVNException - Throws:
SVNException
-
getPasswordFromMacOsKeychain
public static char[] getPasswordFromMacOsKeychain(String realm, String userName, boolean nonInteractive) throws SVNException - Throws:
SVNException
-
addPasswordToGnomeKeyring
public static boolean addPasswordToGnomeKeyring(String realm, String userName, char[] password, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider) throws SVNException - Throws:
SVNException
-
getPasswordFromGnomeKeyring
public static char[] getPasswordFromGnomeKeyring(String realm, 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
-