Class SVNJNAUtil
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil
-
public class SVNJNAUtil extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringJNA_CLASS_NAMEprivate static booleanourIsJNAEnabledprivate static booleanourIsJNAPresent
-
Constructor Summary
Constructors Constructor Description SVNJNAUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddPasswordToGnomeKeyring(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive, ISVNGnomeKeyringPasswordProvider keyringPasswordProvider)static booleanaddPasswordToMacOsKeychain(java.lang.String realm, java.lang.String userName, char[] password, boolean nonInteractive)static booleancreateSymlink(java.io.File file, java.lang.String linkName)static char[]decrypt(char[] encryptedData)static char[]encrypt(char[] rawData)static java.lang.StringgetApplicationDataPath(boolean common)static SVNFileTypegetFileType(java.io.File file)static java.lang.StringgetLinkTarget(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.LonggetSymlinkLastModified(java.io.File file)static java.lang.BooleanisExecutable(java.io.File file)static booleanisGnomeKeyringEnabled()static booleanisJNAPresent()static booleanisMacOsKeychainEnabled()static booleanisWinCryptEnabled()static booleanmoveFile(java.io.File src, java.io.File dst)static booleansetExecutable(java.io.File file, boolean set)static booleansetHidden(java.io.File file)static voidsetJNAEnabled(boolean enabled)static booleansetSGID(java.io.File file)static booleansetWritable(java.io.File file)
-
-
-
Field Detail
-
ourIsJNAEnabled
private static boolean ourIsJNAEnabled
-
ourIsJNAPresent
private static boolean ourIsJNAPresent
-
JNA_CLASS_NAME
private static final java.lang.String JNA_CLASS_NAME
- See Also:
- Constant Field Values
-
-
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)
-
-